package com.topisv.tms.service.work;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.topisv.tms.entity.work.WholePileConfig;
import com.topisv.tms.repository.work.WholePileConfigDao;
import com.topisv.tms.service.base.BaseService;
//import com.topisv.tms.api.TaoBaoAPITool;

/**
 * 整托配置_service
 * @author gh
 */
@Component
@Transactional(readOnly = true)
public class WholePileConfigService extends BaseService{
	@Autowired
	private WholePileConfigDao wpcDao;
	
	public WholePileConfig find(WholePileConfig wpc){
		return this.wpcDao.findByWarehouseCodeAndCustomerCodeAndSku(wpc.getWarehouseCode(), wpc.getCustomerCode(), wpc.getSku());
	}
	public List<WholePileConfig> findAllConfig(){
		return this.wpcDao.findAll();
	}
}